var app = angular.module("bookStore", ["ui.router", "ui.grid", "ui.grid.pagination"]) ;

app.config(function($stateProvider, $urlRouterProvider) {
	
	$stateProvider
	.state("index", {
		url: "",
		views: {
			"": {templateUrl: "tpls/main.html"},
			"main@index": {templateUrl: "tpls/login.html"}
		}
	})
	.state("booklist", {
		url: "/main/booklist/{bookType:[0-9]}",
		views: {
			"": {templateUrl: "tpls/booklist.html"},
			"booktype@booklist": {templateUrl: "tpls/booktype.html"},
			"bookgrid@booklist": {templateUrl: "tpls/bookgrid.html"}
		}
	});
	
	
});



